TARGET = ./bin/main
OBJS = ./obj/main.o ./obj/random.o ./obj/mapas.o
CFLAGS = -Wall -O -Wuninitialized
SOURCES = ./src/random.c ./src/main.c

.SILENT:

$(TARGET): $(OBJS)
	echo "Generating binary executable main ..."
	gcc -o$(TARGET) $(OBJS)

./obj/main.o: ./src/main.c
	echo "Compiling main.c ..."
	gcc -c ./src/main.c
	mv main.o ./obj/

./obj/random.o: ./src/random.c
	echo "Compiling random.c ..."
	gcc -c ./src/random.c
	mv random.o ./obj/

./obj/mapas.o: ./src/mapas.c
	echo "Compiling mapas.c ..."
	gcc -c ./src/mapas.c
	mv mapas.o ./obj/
